<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
  <div id="app">
    <hmj>
      <span slot="url">{{hmjData.url}}</span>
      <span slot="name">{{hmjData.name}}</span>
      <span slot="skill">{{hmjData.skill}}</span>
    </hmj>
  </div>
  <template id="temp">
<div>
  <p>a:<slot name="url"></slot></p>
  <p>b:<slot name="name"></slot></p>
  <p>c:<slot name="skill"></slot></p>
</div>
  </template>
  <script>
    var hmj={
          template:'#temp'
      }
    var app = new Vue({
      el:'#app',
      data:{
        hmjData:{
          url:'http://baidu.com',
          name:'名称',
          skill:"web前端"
        }
      },
      components:{
        hmj
      }

    })
  </script>
</body>
</html>